package Fishbowl_test;

abstract public class Fish {
	protected int x, y;
	public int getX() {
		return x;
	}

	public int getY() {
		return y;
	}

	protected int food, starvation;
	public int getFood() {
		return food;
	}

	public void setFood(int food) {
		this.food = food;
	}

	public int getStarvation() {
		return starvation;
	}

	public void setStarvation(int starvation) {
		this.starvation = starvation;
	}

	protected boolean isAlive;
	public static Fishbowl fishbowl;
	
	public Fish(int x, int y) {
		this.x = x;
		this.y = y;
		this.food = 0;
		this.starvation = 0;
		this.isAlive = true;
	}

	public abstract void simulate();
	
	public boolean isAlive() {
		return this.isAlive;
	}
}
